-- GENERATED SPELL FOR [Hive'Zara Soldier] --


function spell0_15320(pUnit, Event) --@Retaliation,Self--
pUnit:FullCastSpellOnTarget(22857,pUnit)
pUnit:RegisterEvent('Sorts_15320', 15261, 1)
end

function spell1_15320(pUnit, Event) --@Venom Spit,n/a--
pUnit:FullCastSpellOnTarget(25497,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_15320', 8000, 1)
end

function Sorts_15320(pUnit, Event)
local choix_sorts_15320 = math.random(0, 1)
if choix_sorts_15320 == 0 then
pUnit:RegisterEvent('spell0_15320', 1, 1)
end
if choix_sorts_15320 == 1 then
pUnit:RegisterEvent('spell1_15320', 1, 1)
end
end

function mob15320_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_15320', math.random(1500, 3000), 1)
end

function mob15320_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15320_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob15320_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(15320, 1, 'mob15320_Action')
RegisterUnitEvent(15320, 2, 'mob15320_Leave')
RegisterUnitEvent(15320, 3, 'mob15320_Kill')
RegisterUnitEvent(15320, 4, 'mob15320_Die')
